<?php
namespace app\common\model;

/**
* 总店信息模型
*/
class BisLocation extends BaseModel
{
	public function getLocationByBisId($bisId){
		$data = [
			'bis_id' => $bisId,
			'status' => 1,
		];

		$result = $this->where($data)
			->order('id','desc')
			->select();
			// var_dump($this->getLastSql());die;
			return $result;
	}

	public function getLocationInId($ids){
		$data = [
			'id' => ['in',$ids],
			'status' => 1,
		];

		$result = $this->where($data)
					->select();
		return $result;
	}
}